<?php if($categories):?><select id="ProductCategoryId" size="10" name="data[Product][category_id]" class="multiple-select required"><option value="0" disabled="disabled">-----Select Category-----</option><?php		$selected="";	foreach ($categories as $category){			if($this->data['cat_id']>0){			if($this->data['cat_id']==$category['Category']['id'])			$selected=" selected='selected'";		else			$selected="";	}?><option value="<?php echo $category['Category']['id'];?>" <?php echo $selected;?>><?php echo $category['Category']['category_name'];?></option><?php }?></select><?php else:?><span class="error_text">No Parent Category found.</span><?php endif;?>